/* 设置logo图标宽度 */
.logo {
    width: 200px;
    position: absolute;
    left: 0;
    top:0;
    cursor: pointer;
}
.first-nav {
    position: relative;
}
/* 搜索框 */
.search-box input:first-child {
    width: 390px;
    height: 36px;
    font-size: 20px;
    padding-left: 10px;
}
/* 搜索按钮 */
.search-box input:nth-child(2) {
    height: 40px;
    width:50px;
    background: url(../images/bgicon.png);
    border:none;
    background-color: #ff6600;
    background-position-y: 4px;
}
.search-box input:first-child,
.search-box input:nth-child(2) {
    vertical-align: bottom;
}
/* 购物车 */
.shopcart a {
    width: 100px;
    height: 40px;
    display: inline-block;
    line-height: 40px;
    box-sizing: border-box;
    font-size: 14px;
}
.shopcart {
    margin-left:10px;
}
/* 购物车按钮 */
.shopcart a:first-child {
    padding-left: 38px;
    background: url(../images/bgicon.png);
    background-position-y: -38px;
    background-color: #ff6600;
}
/* 我的订单 */
.shopcart a:nth-child(2) {
    background: #ebebeb;
    margin-left: -7px;
    text-align: center;
}
/* 菜单导航栏 */
nav ul li {
    float: left;
}
.navigation {
    margin-top: 20px;
}
.navigation ul {
    padding-left: 260px;
}
.navigation a {
    font-size: 18px;
    padding: 2px 5px;
    display: inline-block;
    margin:0 6px;
    font-weight: bold;
}
/* 轮播图模块 - 左边*/
.swiper-container div:nth-child(1) {
    width: 200px;
    height:500px;
    background: #f3f3f3;
}
/* 轮播图插件改变了原来的结构，现在我们复写回来容器的宽度 */
.swiper-container div.surface {
    width: 750px;
}
.swiper-container div:nth-child(2) {
    width: 879px;
    height: 400px;
}

.swiper-container div dl {
    display: none;
}
.swiper-container li {
    height: 36px;
    line-height: 36px;
    text-align: center;

}
.swiper-container p {
    /* 提前给未来hover时加上的边框 做一个占位，避免加入边框出现抖动 */
    border:1px solid transparent;
}
.swiper-container p:hover {
    color:#ff6600;
    border:1px solid #ff6600;
    background: #ffffff;
    /* 未来压制住右边出现的元素 */
    border-right: 1px solid #ffffff;
    /* 仅仅加入z-index还不能解决问题，原因是该元素没有【发生定位】 */
    z-index: 100;
    /* position:static; 没有定位 */
    position: relative;
}
/* 悬浮后显示的内容定位的父级要是同一个元素：ul */
.swiper-container ul {
    position: relative;
}

.swiper-container p:hover + dl{ 
    display: block;
    position: absolute;
    top:0;
    left:199px;
    width:500px;
    height:300px;
    border:1px solid #ff6600;
    z-index:99;
}
/* 今日推荐 */
/* <!-- UL左侧一条线，li右侧一条线 --> */
.today-recommend ul {
    margin:0 5px;
    border-left:2px solid #ff6600;
}
.today-recommend li {
    border-right: 2px solid #ff6600;
    border-bottom: 2px solid #ff6600;
    width: 175px;
    height: 260px;
    float: left;
}
.today-recommend li p:nth-child(3),
.today-recommend li p:nth-child(4),
.today-recommend li p:nth-child(5) {
    font-size:12px;
    text-align: left;
    margin:5px;
}
.today-recommend li p:nth-child(3) {
    font-weight: bold;
}
/* 电子书 */
.electron-book-left {
    width: 850px;
}
.electron-book-right {
    width: 250px;
    margin-top:80px;
}

.ebook-content-left {
    width: 235px;
}
.ebook-content-right {
    width: 610px;
}
/* 电子书标题 */
.electron-book-title p {
    cursor: pointer;
    width: 100px;
    height: 40px;
    line-height: 40px;
}
.electron-book-title div {
    text-align: center;
}
.electron-book-title {
    line-height: 40px;
}
/* 电子书左边图文 */
.ebook-content-left p{
    margin:5px;
    font-size:15px;
}
.ebook-content-left p a {
    padding:5px;
}
.ebook-content-left {
    background: #f3f3f3;
}


.ebook-content-right ul {
    margin:0 5px;
    border-left:2px solid #ccc;
}
.ebook-content-right li {
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    width: 146px;
    height: 220px;
    float: left;
}
.ebook-content-right li p:nth-child(3),
.ebook-content-right li p:nth-child(4),
.ebook-content-right li p:nth-child(5) {
    font-size:12px;
    text-align: left;
    margin:5px;
}
.ebook-content-right li p:nth-child(3) {
    font-weight: bold;
}
.ebook-content-right li:first-child {
    width: 294px;
}
/* 新书畅销榜 */
.electron-book-right {
    border:1px solid #cecece;
    text-align: center;
    color:#726e6a;
}
.electron-book-right h3 {
    color:#726e6a;
}
.electron-book-right li {
    border-bottom: 1px solid #cecece;
    font-size: 12px;
    position: relative;
    padding-left: 5px;

}
.electron-book-right img {
    float: left;
}
.electron-book-right li> p {
    font-size:10px;
    height: 30px;
    line-height: 30px;
}
.electron-book-right li:last-child {
    border-bottom: transparent;
}

.electron-book-right .num {
    position: absolute;
    left:5px;
    top:5px;
}
.electron-book-right div {
    display: none;
    padding-left: 10px;
}
.electron-book-right div img{
    width: 60px;
}
/* 实现楼层功能 */
.floor{
    position: fixed;
    left:10px;
    top:50%;
    /* C3属性： 基于自身进行平移：平移的尺寸是根据自身：【不会元素的DOM结构】 */
    transform: translateY(-50%);
}
.floor li {
    background: #f3f3f3;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color:white;
    overflow: hidden;
    padding-left: 40px;
    /* 切换怪异盒子模型 = 宽度的定义 包含内容 + 边框 + 内边距 */
    box-sizing: border-box;
    background: url(../images/floor.png) no-repeat;
}
.floor li:nth-child(1) {
    background-position-y: 0;
}
.floor li:nth-child(2) {
    background-position-y: -80px;
}
.floor li:nth-child(3) {
    background-position-y: -160px;
}
.floor li:nth-child(4) {
    background-position-y: -200px;
}
.floor li:nth-child(5) {
    background-position-y: -320px;
}

.topBox {
    background-color: black;
    height: 80px;
    position:fixed;
    top:0;
    left:0;
    width: 100%;
    display: none;
    z-index:999;
}